import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("../views/index.vue"),
  },
  // 电子图列表
  {
    path: "/electDrawList",
    name: "electDrawList",
    component: () => import("../views/electDrawList.vue"),
  },
  // 电子图核对
  {
    path: "/electDrawCheck",
    name: "electDrawCheck",
    component: () => import("../views/electDrawCheck.vue"),
  },
  // 电子图查看
  {
    path: "/electDrawView",
    name: "electDrawView",
    component: () => import("../views/electDrawView.vue"),
  },
  // 模拟操作项页面
  {
    path: "/electDraw",
    name: "electDraw",
    component: () => import("../views/electDraw.vue"),
  },
];

const router = new VueRouter({
  mode: "hash",
  base: process.env.BASE_URL,
  routes,
});

export default router;
